#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "Service.h"
#include "Manager.h"
#include <fcntl.h>

/// <summary>
/// Locals
/// </summary>
ServiceManager manager;

/// <summary>
/// Establishes a connection
/// to the service control manager on
/// the specified computer and opens the
/// specified service control manager database.
/// </summary>
int OpenServiceManager(ServiceManagerPtr sm, const char *database)
{
	if (sm == NULL)
		return -1;
	manager.database = database;
	sm = &manager;
	return 0;
}
